package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lyl
 * @since 2018-08-01
 */
@TableName("car_file")
public class CarFile extends Model<CarFile> {

    private static final long serialVersionUID = 1L;

    /**
     * 车辆档案id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 车辆编号
     */
    private Integer carnumber;
    /**
     * 驾驶员名称
     */
    private String carname;
    /**
     * 座位数
     */
    private String pedestal;
    /**
     * 车牌
     */
    private String licenceplate;
    /**
     * 颜色
     */
    private String colour;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCarnumber() {
        return carnumber;
    }

    public void setCarnumber(Integer carnumber) {
        this.carnumber = carnumber;
    }

    public String getCarname() {
        return carname;
    }

    public void setCarname(String carname) {
        this.carname = carname;
    }

    public String getPedestal() {
        return pedestal;
    }

    public void setPedestal(String pedestal) {
        this.pedestal = pedestal;
    }

    public String getLicenceplate() {
        return licenceplate;
    }

    public void setLicenceplate(String licenceplate) {
        this.licenceplate = licenceplate;
    }

    public String getColour() {
        return colour;
    }

    public void setColour(String colour) {
        this.colour = colour;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CarFile{" +
        "id=" + id +
        ", carnumber=" + carnumber +
        ", carname=" + carname +
        ", pedestal=" + pedestal +
        ", licenceplate=" + licenceplate +
        ", colour=" + colour +
        "}";
    }
}
